# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
(r'^users/(?P<username>[a-zA-Z]\w*)',      'snewi.views.user'),
(r'^users/',                               'snewi.views.users'),
(r'^addfriend/(?P<username>[a-zA-Z]\w*)',  'snewi.views.addfriend'),
(r'^rmfriend/(?P<username>[a-zA-Z]\w*)',   'snewi.views.rmfriend'),
(r'^url/(?P<url>.*)',                      'snewi.views.urls'),
(r'^addurl/(?P<url>.*)',                   'snewi.views.addurl'),
(r'^addentry/',                            'snewi.views.addentry'),
(r'^entry/(?P<entry_id>\d+)/?$',           'snewi.views.entry'),
(r'^friends/',                             'snewi.views.friends'),
(r'^$',                                    'snewi.views.index'),
(r'^login/',                               'snewi.views.log_in'),
(r'^logout/',                              'snewi.views.log_out'),
(r'^addopinion/',                          'snewi.views.addopinion'),
(r'^accounts/',                            include('registration.urls')),
    # Example:
    # (r'^snewi_web/', include('snewi_web.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
)